﻿using Program11;
using System;

namespace program11
{
   internal class Program
    {
        private static void Main(string[] args)
        {
            string pwd1 = "123456";
            Console.WriteLine("密码明文:{0}", pwd1);
            var enPwd1 = Encryption.GetEncryptString(pwd1);
            Console.WriteLine("密文:{0}", enPwd1);

            //string pwd1 = "123456";
            //Console.WriteLine("密码明文:{0}", pwd1);
            //var md5Pwd1 = Encryption.GetMd5(pwd1);
            //Console.WriteLine("密码MD5密文:{0}", md5Pwd1);
            //var shaPwd1 = Encryption.GetSHA(pwd1);
            //Console.WriteLine("密码SHA512密文:{0}", shaPwd1);

            ////加盐
            //string pwd2 = "123456" + "#j56Yk.@0Dfg";
            //Console.WriteLine("密码明文:{0}", pwd2);
            //var md5Pwd2 = Encryption.GetMd5(pwd2);
            //Console.WriteLine("密码MD5密文:{0}", md5Pwd2);
            //var shaPwd2 = Encryption.GetSHA(pwd2);
            //Console.WriteLine("密码SHA512密文:{0}", shaPwd2);

            ////再做二次加密
            //var finalmd5 = Encryption.GetMd5(md5Pwd2);
            //Console.WriteLine("二次MD5密文:{0}", finalmd5);
            //var final512 = Encryption.GetSHA(md5Pwd2);
            //Console.WriteLine("二次SHA密文:{0}", final512);
        }

    }
}
